<?php

    $this->pageTitle=Yii::app()->name . ' - Registration';
    $this->breadcrumbs=array('Registration',);    

?>

<h1>Registration</h1>

<div class="form">
<?php
    $form=$this->beginWidget('CActiveForm',array(
        'id'=>'reg-form',
        'enableAjaxValidation'=>true,
        ));
?>  
    <div class="row">
        <?php echo $form->labelEx($reguser,'Username'); ?>
        <?php echo $form->textField($reguser,'username'); ?>
        <?php echo $form->error($reguser,'username'); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($reguser,'E-mail'); ?>
        <?php echo $form->textField($reguser,'email'); ?>
        <?php echo $form->error($reguser,'email'); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($reguser,'Password'); ?>
        <?php echo $form->passwordField($reguser,'password');?>
        <?php echo $form->error($reguser,'password'); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($reguser,'Password'); ?>
        <?php echo $form->passwordField($reguser,'password1');?>
        <?php echo $form->error($reguser,'password1'); ?>
    </div>
    
    <div class="row buttons">
        <?php echo CHtml::submitButton('tratata',array('class'=>'Ok')); ?>
    </div>
    
    <?php $this->endWidget(); ?>
</div><!-- end form -->
